<template>
  <span v-if="type === 'totalAndCurrent'">第{{ current }}页 共{{ total }}页 </span>
  <span v-else-if="type === 'total'">共{{ total }}页 </span>
  <span v-else-if="type === 'count'">共{{ count }}条记录 </span>
  <span v-else-if="type === 'current/total'">第{{ current }}/{{ total }}页 </span>
</template>

<script lang="ts" setup>
  const props = defineProps({
    current: Number,
    total: Number,
    count: Number,
    size: Number,
    type: String
  })
</script>

<style scoped></style>
